package com.ruoyi.draw.mapper;

import java.util.List;
import com.ruoyi.draw.domain.NovelStoryboard;
import org.apache.ibatis.annotations.Param;

/**
 * NovelStoryboardMapper接口
 * 
 * @author Locke
 * @date 2025-10-25
 */
public interface NovelStoryboardMapper 
{
    /**
     * 查询NovelStoryboard
     * 
     * @param id NovelStoryboard主键
     * @return NovelStoryboard
     */
    public NovelStoryboard selectNovelStoryboardById(Long id);

    /**
     * 查询NovelStoryboard列表
     * 
     * @param novelStoryboard NovelStoryboard
     * @return NovelStoryboard集合
     */
    public List<NovelStoryboard> selectNovelStoryboardList(NovelStoryboard novelStoryboard);

    /**
     * 新增NovelStoryboard
     * 
     * @param novelStoryboard NovelStoryboard
     * @return 结果
     */
    public int insertNovelStoryboard(NovelStoryboard novelStoryboard);

    /**
     * 修改NovelStoryboard
     * 
     * @param novelStoryboard NovelStoryboard
     * @return 结果
     */
    public int updateNovelStoryboard(NovelStoryboard novelStoryboard);

    /**
     * 删除NovelStoryboard
     * 
     * @param id NovelStoryboard主键
     * @return 结果
     */
    public int deleteNovelStoryboardById(Long id);

    /**
     * 批量删除NovelStoryboard
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNovelStoryboardByIds(Long[] ids);
    
    /**
     * 根据小说ID和章节ID查询分镜列表
     * 
     * @param novelId 小说ID
     * @param chapterId 章节ID
     * @return 分镜列表
     */
    public List<NovelStoryboard> selectNovelStoryboardByNovelIdAndChapter(@Param("novelId") Long novelId, @Param("chapterId") Long chapterId);
}
